#include "mainwindow.h"

#include <QApplication>
#include <QTextCursor>

#include "src/Manager/SingleApplication.h"


MU_A_INFO currentStatus;

int main(int argc, char *argv[])
{

//    SingleApplication a(argc, argv,"Test Application");
//    if(a.isRunning()){
//        return  1;
//    }



    qRegisterMetaType<QTextCursor>("QTextCursor");
    qRegisterMetaType<RobotPos>("RobotPos");
    qRegisterMetaType<char*>("char*");
     QApplication a(argc, argv);




    QFile f(":/qss/Aqua.qss");
    if (!f.exists())
    {
        printf("没有找到您的QSS文件!\n");
    }
    else
    {
        f.open(QFile::ReadOnly | QFile::Text);
        QTextStream ts(&f);
        qApp->setStyleSheet(ts.readAll());
    }


    MainWindow w;
    w.setMaximumHeight(880);
    w.setMaximumWidth(1920);
    w.setWindowFlag(Qt::WindowMaximizeButtonHint, true);
    //w.showFullScreen();
    w.show();
    return a.exec();
}
